package com.next

class Country
{
    String name

    static hasMany = [provinces: Province]

    static constraints = {
        name maxSize: 128, unique: true
    }

    static mapping = {
        sort 'name'
        cache true
    }

    String toString()
    {
        name
    }
}
